Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update Updates.tsx #383

Merged
merged 1 commit into from
Jun 22, 2023
Merged

Update Updates.tsx #383

merged 1 commit into from
Jun 22, 2023

Conversation

Becods
Copy link
Contributor

@Becods Becods commented Jun 22, 2023

In React function components, hooks like useState and useEffect should be called on every render, rather than being returned within conditional branches.

So, it leads to the "white screen" issues as shown in the diagram:

image

@schroda schroda merged commit 5d9bc54 into Suwayomi:master Jun 22, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants